<?php
/**
 * File: cmsgoodspictures.php.
 * Author: caoqicheng@haibao.com
 * Editor: PhpStorm
 * Date: 17/2/7 上午10:45
 * Brief:
 */
namespace haibao\jiepai\model\data\goods;

class CmsGoodsPictures extends \haibao\jiepai\model\data\Base{
	
	/**
	 * 类型 1-商品图 2-搭配图
	 */
	const TYPE_GOODS = 1;
	const TYPE_COLLOCTION = 2;
	
	public $GoodsID;

	public $Type;
	
	public $FileID;
	
	public $ShowIndex;
	
	public $ImageInfo;
	
	public function __construct(){
		parent::__construct();
		
		$this->intField('Type', 'Type');
		$this->intField('GoodsID', 'GoodsID');
		$this->intField('FileID', 'FileID');
		$this->intField('ShowIndex', 'ShowIndex');
		
		$this->setTableName('cms_goods_pictures');
	}
}